/*
 * DestAddrNatTrack.h
 *
 *  Created on: 30- 4月-09
 *      Author: root
 */

#ifndef DESTADDRNATTRACK_H_
#define DESTADDRNATTRACK_H_

//#include <sys/socket.h>
//#include <netinet/in.h>
#include <stdio.h>
#include <stdlib.h>
#include <fstream>
#include <string>

using namespace std;

struct server_addr
{
	char serverip[20];
	unsigned short int serverport;
};

#define MAX_CMD		100

///////
class DestAddrNatTrack
{
private:
	//server_addr serveraddr;
	static DestAddrNatTrack * m_instance;
	void get_daddr_file(char *,unsigned short int,unsigned short int);
public:
	DestAddrNatTrack();
	virtual ~DestAddrNatTrack();

	int get_serveraddr(char *src_ip,unsigned short int local_port,unsigned short int src_port,server_addr&);
	static DestAddrNatTrack& getInstance();
};

#endif /* DESTADDRNATTRACK_H_ */
